package org.victoria.market.domain;

import org.apache.ibatis.type.Alias;

/**
 * Created by thanatos on 15-10-2.
 */
@Alias("CtgAttribute")
public class CtgAttribute {

    public static final int INPUT_TEXT = 0; //文本框
    public static final int INPUT_RADIO = 1; //单选框
    public static final int INPUT_CHECKBOX = 2; //复选框
    public static final int INPUT_SELECT = 3; //下拉框
    public static final int INPUT_DATE_PICK = 4; //日期选择

    //field
    private Long id;
    private String name;
    private int type;
    private String vals;
    private int sort;
    private int inputWidth;

    //many to one
    private Category category;

    //get and set
    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVals() {
        return vals;
    }

    public void setVals(String vals) {
        this.vals = vals;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getInputWidth() {
        return inputWidth;
    }

    public void setInputWidth(int inputWidth) {
        this.inputWidth = inputWidth;
    }
}
